/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn;

import java.util.stream.IntStream;

/**
 * <p>Project: app2022 - ForDemo
 * <p>Powered by webrx On 2022-01-25 12:58:44
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ForDemo {
    int i = 6;

    public static void main(String[] args) {
        var is = IntStream.rangeClosed(1, 100);
        is.filter(e -> e % 2 == 0).map(e -> e + 1).forEach(System.out::println);
    }

    public static void for2(String[] args) {
        int a = 0;
        a += 5;
        int b = 5;

        --b;
        b = b++ + ++a;
        System.out.println(a);
        for (int i = 0; i < 15; i++) {
            a = i;
            System.out.println(i);
        }

    }
}
